package game;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;

import editor.StartEditor;

public class Main extends StateBasedGame{

	//Create all Variables
	public static final int menu = 0;
	public static final int multi = 2;
	public static final int single = 1;
	public static final int gamelist = 3;
	public static final int serverStarten = 5;
	public static final int mod = 6;
	public static final int result = 7;
	public static final int startEditor = 8;
	public static final int lobby = 9;
	public static final int sizex = 1000;
	public static final int sizey = 700;
	public static int maxFPS = 60;
	public static int sizefield = 30;
	

	public Main(String title) throws SlickException {
		super(title);
	}
	
	public void initStatesList(GameContainer gc) throws SlickException{
		
		this.addState(new Menu(menu));
		this.addState(new Singleplayer(single));
		this.addState(new Gamelist(gamelist));
		this.addState(new StartEditor(startEditor));
		
		gc.setTargetFrameRate(maxFPS);
		
	}

	public static void main(String[] args) throws SlickException, InterruptedException {

		AppGameContainer app = new AppGameContainer(new Main("Bomberman"));
		app.setDisplayMode(sizex, sizey, false);
		app.start();
		}

}
